package com.sanyou.pojo.vo;

import com.sanyou.pojo.IndustryData;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * User: asus
 * Date: 2021-12-13
 * Time: 20:02
 * Version:V1.0
 */
@Data
public class ProductVo {
    //阴极板id
    private Integer id;

    //阴极板编码
    private String productCode;

    //平面度
    private Double productPlane;

    //平面度更新时间
    private Date updatePlaneDate;

    //垂直度
    private Double productValue;

    //阴极板状态
    private Integer productState;

    //阴极板创建时间
    private Date createtime;

    //状态更新时间
    private Date updateStateDate;

    //维修类型
    private Integer maintainType;

    //维修时间
    private Date updateMaintainDate;

    //状态变更人id
    private String userid;

    //状态变更人
    private String username;

    //导电棒长
    private Double ddbLength;

    //导电棒宽
    private Double ddbWidth;

    //导电棒高
    private Double ddbHeight;

    //阴极板长
    private Double yjbLength;

    //阴极板宽
    private Double yjbWidth;

    //阴极板高
    private Double yjbHeight;

    //导电棒尺寸(ddbLength*ddbWidth*ddbHeight)
    private String ddbSize;

    //阴极板尺寸(yjbLength*yjbWidth*yjbHeight)
    private String yjbSize;

    //所属工厂id
    private String factoryId;

    //所属工厂名
    private String factoryName;

    //所属车间id
    private String subFactoryId;

    //所属车间名
    private String subFactoryName;

    //所属订单id
    private Integer orderId;

    //所属项目id
    private Integer projectId;

    //所属项目

    //检测循环次数
    private int cycle;

    //维修次数
    private int maintainCycle;

    //阴极板是否收藏(1-收藏,2-未收藏)
    private int collectStatus;

    /**
     * 导电棒尺寸格式化
     * @return
     */
    public String DdbSizeToString(){
        if(ddbLength != null && ddbWidth != null && ddbHeight != null)
            return ddbLength + "*" + ddbWidth + "*" + ddbHeight;
        return "";
    }

    /**
     * 阴极板尺寸格式化
     * @return
     */
    public String YjbSizeToString(){
        if(yjbLength != null && yjbWidth != null && yjbHeight != null)
            return yjbLength + "*" + yjbWidth + "*" + yjbHeight;
        return "";
    }
}
